package com.example.exercise.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello(){
          return "hello，users！2222222222";
    }


    @PostMapping("/list")
      public String helloPost(String name){
       return "Hello World Post" +name;
    }
}